package com.sys.ai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sys.common.annotation.Excel;
import com.sys.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 发送记录对象 ai_send_history
 *
 * @author LGY
 * @date 2025-05-09
 */
@Data
@Accessors(chain = true)
@TableName("ai_send_history")
@Schema(description = "发送记录对象")
public class AiSendHistory extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "ID")
    private String id;

    @TableField(value = "app_id")
    @Schema(description = "发出请求的应用编码")
    private String appId;

    @Schema(description = "问答归属组")
    @TableField(value = "group_code")
    private String groupCode;

    @Schema(description = "问答归属组名称")
    @TableField(value = "group_name")
    private String groupName;
    /**
     * 模型编码
     */
    @Excel(name = "模型编码")
    @TableField(value = "code")
    @Schema(description = "模型编码")
    private String code;
    /**
     * 用户问的问题
     */
    @Excel(name = "用户问的问题")
    @TableField(value = "question")
    @Schema(description = "用户问的问题")
    private String question;
    /**
     * 回答的问题
     */
    @Excel(name = "推理 + 回答")
    @TableField(value = "answer")
    @Schema(description = "推理 + 回答")
    private String answer;

    @Schema(description = "回答内容")
    @TableField(value = "content")
    private String content;

    @Schema(description = "推理内容")
    @TableField(value = "reasoning_content")
    private String reasoningContent;
    /**
     * 备注
     */
    @Excel(name = "备注")
    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;
}